//
//  SwiftUIView.swift
//  Example
//
//  Created by admin on 2020/8/31.
//  Copyright © 2020 admin. All rights reserved.
//

import SwiftUI

struct SPStoreRow: View {
    
    var id:String
    var name:String = "吉峰凝集"
    var code:String = "300022"
    var inprice:String = "0.00"
    var outprice:String = "0.00"
    
    var body: some View {
        
        
        
        VStack(alignment: .leading){
            
            HStack(alignment: .center) {
                Text("\(name) ")
                Text("（\(code)）")
                    
            }
            .padding(.bottom, 10.0)
          
            HStack (){
                Text("买:\(inprice)")
              
                Spacer()
                Text("卖:\(outprice)")
                
            }
        }
        .foregroundColor(Color.white)
        .padding()
        
   
    }
    
}

struct SPStoreRow_Previews: PreviewProvider {
    static var previews: some View {
        SPStoreRow(id: "", name: "科技etf", code: "000330", inprice: "0.00", outprice: "24.00")
    }
}
